<!--
 * @Descripttion: 
 * @version: 
 * @Author: 小白
 * @Date: 2021-09-13 21:59:11
 * @LastEditors: 小白
 * @LastEditTime: 2022-02-16 23:54:39
-->
<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <link rel="icon" type="image/svg+xml" href="favicon.ico" />
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover"
    />
    <meta name="description" content="react ts template" />
    <title>react ts template</title>
    <!-- 字体库 -->
    <link
      rel="stylesheet"
      href="https://at.alicdn.com/t/font_2119875_3quue9pssv3.css"
    />
  </head>
  <body>
    <div id="root"></div>
    <script type="module" src="/src/index.tsx"></script>
  </body>
  <script src="https://as.alipayobjects.com/g/component/fastclick/1.0.6/fastclick.js"></script>

  <!-- 移动端取消点击延迟 -->
  <script>
    FastClick.prototype.focus = function (targetElement) {
      let length;
      if (
        targetElement.setSelectionRange &&
        targetElement.type.indexOf('date') !== 0 &&
        targetElement.type !== 'time' &&
        targetElement.type !== 'month'
      ) {
        length = targetElement.value.length;
        targetElement.focus();
        targetElement.setSelectionRange(length, length);
      } else {
        targetElement.focus();
      }
    };
  </script>
</html>
